package cn.com.code.generator.vo;

import cn.com.do1.dsf.common.validator.group.AddGroup;
import cn.com.do1.dsf.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class PortalToDoStatisticsRequest {
    @NotBlank(message = "当前用户id不能为空")
    @ApiModelProperty(value = "当前用户id", required = true)
    private String currentUserId;

    @ApiModelProperty("单据对应组织权限")
    @NotNull(message="单据集合不能为空", groups = {AddGroup.class ,  UpdateGroup.class})
    private List<BillTypeCode> billTypeCodes;

    @NotBlank(message = "appCode 不能为空")
    @ApiModelProperty(value = "应用编码", required = true)
    private String appCode;

    @ApiModelProperty(value = "财政区划代码不能为空", required = true)
    @NotBlank(message = "财政区划代码不能为空!")
    private String mofDivCode;

    @ApiModelProperty(value = "年度不能为空", required = true)
    @NotBlank(message = "年度不能为空!")
    private String fiscalYear;

    @ApiModelProperty(value = "角色id不能为空", required = true)
    @NotBlank(message = "角色id不能为空!")
    private String roleId;

    @ApiModelProperty(value = "所属机构编码不能为空", required = true)
    @NotBlank(message = "所属机构编码不能为空!")
    private String orgCode;
}
